package com.dream.dreamhouse.mapper;

import com.dream.dreamhouse.entity.Dream;
import com.dream.dreamhouse.entity.vo.DreamVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author lizhen
 * @date 2025/6/9 14:52
 */
@Mapper
public interface DreamMapper {

    List<Dream> getDreamList();

    void addDream(DreamVo dreamVo);

    List<Dream> findByLikes();

    void increaseLikeCount(DreamVo dreamVo);

    void decreaseLikeCount(DreamVo dreamVo);

    List<Dream> findByTime();
}
